package zjc.练习;

import java.util.Random;

public class 抢红包 {
    public static void main(String[] args) {
        int[] a = {2, 588, 888, 1000, 10000};
        int[] b = {0,0,0,0,0};
        Random sj = new Random();
        for (int i = 0; i < 5; i++) {
            int s=sj.nextInt(5);
            if(b[s]==0) {
                System.out.println(a[s]);
            }else{
                i--;
                continue;
            }
            b[s]++;
        }
    }
}
